package gdr.dev;


import com.golden.gamedev.Game;
import com.golden.gamedev.GameLoader;
import gdr.graphics.*;
//import gdr.io.*;
import java.awt.Graphics2D;
import java.awt.Dimension;

/**
 * Classe d'avvio dell'applicazione
 * @author Giorgio Vitale
 *
 */
public class SuperGDR9000 extends Game{
	protected BattleGraphics battle;
	public static final String VERSIONE_GIOCO = "0.1beta";
	
	public void initResources() {
    	setFPS(50);
		RandomGenerator r = new RandomGenerator();
    	battle = r.generateBaseBattleGraphics(this);
    	}

    public void update(long elapsedTime) {
        battle.update(elapsedTime);
    }

    public void render(Graphics2D g) {
        battle.render(g);
    }
	
	
	public static void main(String[] args){
		if (args.length==1) gdr.connection.Server.create(args);
		if (args.length==2) gdr.connection.Client.create(args);
		
		/*GameLoader game = new GameLoader();
        game.setup(new SuperGDR9000(), new Dimension(640,480), false);
        game.start();*/
	}

}